﻿using Idte.Common.Patterns;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Common.Process
{
    public interface IProcessDescriptor : IProcessDescriptor<IStepDescriptor>
    {
    }
    public interface IProcessDescriptor<TStepDescriptor> where TStepDescriptor : IStepDescriptor
    {
        ICollection<TStepDescriptor> Steps { get; set; }
    }

    public interface IStepDescriptor : INamed, IComponent
    {
        Guid Id { get; set; }
        string Code { get; set; }
        int? Sequence { get; set; }
        Step Create();
    }
}
